Skip to content

Conversation

@simon-id
Copy link
Contributor

@simon-id simon-id commented Jun 13, 2025

Closes #20

I think it doesn't work with class constructor rewrite ?

DISCLAIMER:

I have no idea what i'm doing, i'm only trying random stuff until the compiler and the tests are happy. Don't assume anything is correct.

@simon-id simon-id self-assigned this Jun 13, 2025
@simon-id simon-id added the enhancement New feature or request label Jun 13, 2025
@simon-id simon-id force-pushed the simon-id/fix_arguments_mutation branch from d207977 to 3714811 Compare June 13, 2025 13:32
@simon-id simon-id marked this pull request as ready for review June 13, 2025 14:12
@rochdev
Copy link

rochdev commented Jun 13, 2025

I think it doesn't work with class constructor rewrite ?

Shouldn't a test be failing if that's the case?

@simon-id
Copy link
Contributor Author

simon-id commented Jun 14, 2025

nah there was no test for argument mutation, so i had to write one, and i only wrote it for function declaration, not for class constructor, i'll try to write one later to see if i'm right, but from what i can tell, the function that handles constructors doesn't go through my code path so i assume it doesn't work.
I already started coding a fix for it but I still have ZERO idea what i'm doing so idk

Copy link
Contributor

@timfish timfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bizob2828 asked me to review this PR on our temporary fork so I thought I should review this upstream since it is originally your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mutating traced function arguments in channel subscriber

4 participants